.class Lorg/zeam/NumberPicker$NumberPickerInputFilter;
.super Ljava/lang/Object;
.source "NumberPicker.java"

# interfaces
.implements Landroid/text/InputFilter;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/zeam/NumberPicker;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "NumberPickerInputFilter"
.end annotation


# instance fields
.field final synthetic this$0:Lorg/zeam/NumberPicker;


# direct methods
.method private constructor <init>(Lorg/zeam/NumberPicker;)V
    .locals 0
    .parameter

    .prologue
    .line 275
    iput-object p1, p0, Lorg/zeam/NumberPicker$NumberPickerInputFilter;->this$0:Lorg/zeam/NumberPicker;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lorg/zeam/NumberPicker;Lorg/zeam/NumberPicker$NumberPickerInputFilter;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 275
    invoke-direct {p0, p1}, Lorg/zeam/NumberPicker$NumberPickerInputFilter;-><init>(Lorg/zeam/NumberPicker;)V

    return-void
.end method


# virtual methods
.method public filter(Ljava/lang/CharSequence;IILandroid/text/Spanned;II)Ljava/lang/CharSequence;
    .locals 14
    .parameter "source"
    .parameter "start"
    .parameter "end"
    .parameter "dest"
    .parameter "dstart"
    .parameter "dend"

    .prologue
    .line 279
    iget-object v3, p0, Lorg/zeam/NumberPicker$NumberPickerInputFilter;->this$0:Lorg/zeam/NumberPicker;

    invoke-static {v3}, Lorg/zeam/NumberPicker;->access$4(Lorg/zeam/NumberPicker;)[Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_0

    .line 280
    iget-object v3, p0, Lorg/zeam/NumberPicker$NumberPickerInputFilter;->this$0:Lorg/zeam/NumberPicker;

    invoke-static {v3}, Lorg/zeam/NumberPicker;->access$5(Lorg/zeam/NumberPicker;)Landroid/text/InputFilter;

    move-result-object v3

    move-object v4, p1

    move/from16 v5, p2

    move/from16 v6, p3

    move-object/from16 v7, p4

    move/from16 v8, p5

    move/from16 v9, p6

    invoke-interface/range {v3 .. v9}, Landroid/text/InputFilter;->filter(Ljava/lang/CharSequence;IILandroid/text/Spanned;II)Ljava/lang/CharSequence;

    move-result-object v3

    .line 291
    :goto_0
    return-object v3

    .line 282
    :cond_0
    invoke-interface/range {p1 .. p3}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    .line 283
    .local v10, filtered:Ljava/lang/CharSequence;
    new-instance v3, Ljava/lang/StringBuilder;

    const/4 v4, 0x0

    move-object/from16 v0, p4

    move v1, v4

    move/from16 v2, p5

    invoke-interface {v0, v1, v2}, Landroid/text/Spanned;->subSequence(II)Ljava/lang/CharSequence;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-interface/range {p4 .. p4}, Landroid/text/Spanned;->length()I

    move-result v4

    move-object/from16 v0, p4

    move/from16 v1, p6

    move v2, v4

    invoke-interface {v0, v1, v2}, Landroid/text/Spanned;->subSequence(II)Ljava/lang/CharSequence;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    .line 284
    .local v11, result:Ljava/lang/String;
    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v12

    .line 285
    .local v12, str:Ljava/lang/String;
    iget-object v3, p0, Lorg/zeam/NumberPicker$NumberPickerInputFilter;->this$0:Lorg/zeam/NumberPicker;

    invoke-static {v3}, Lorg/zeam/NumberPicker;->access$4(Lorg/zeam/NumberPicker;)[Ljava/lang/String;

    move-result-object v3

    array-length v4, v3

    const/4 v5, 0x0

    :goto_1
    if-lt v5, v4, :cond_1

    .line 291
    const-string v3, ""

    goto :goto_0

    .line 285
    :cond_1
    aget-object v13, v3, v5

    .line 286
    .local v13, val:Ljava/lang/String;
    invoke-virtual {v13}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v13

    .line 287
    invoke-virtual {v13, v12}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_2

    move-object v3, v10

    .line 288
    goto :goto_0

    .line 285
    :cond_2
    add-int/lit8 v5, v5, 0x1

    goto :goto_1
.end method
